home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / CPlusPlus / GeoTypes.xh < prev    next >
Encoding:
Text File  |  1997-02-13  |  1.8 KB  |  84 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: GeoTypes.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_Module_OpenDoc_GeoTypes_defined
  11. #define SOM_Module_OpenDoc_GeoTypes_defined 1
  12. #include <som.xh>
  13.  
  14. /*
  15.  * Start of user-defined types:
  16.  */
  17. typedef
  18. long  ODCoordinate;
  19.  
  20. /*
  21.  *  Graphics coordinates; 16.16 fixed by default
  22.  */
  23.  
  24. /*
  25.  * -- Share exact same alignment between 68k & PowerPC.
  26.  * -- User to add padding to idl as desired for better alignment.
  27.  */
  28. #if powerc
  29. #  pragma options align=mac68k
  30. #endif
  31. typedef
  32. struct ODPoint {
  33. ODCoordinate x,  y;
  34.  
  35. /*
  36.  *  Identical to "gxPoint" in QD GX.
  37.  */
  38. } ODPoint;
  39.  
  40. /*
  41.  *  ODRect struct. We conditionalize this with a symbol, like the header files, to allow
  42.  *  alternate definitions to be included first; they can then #define _RECT_ to keep this one
  43.  *  from being defined here.
  44.  *  Identical to "gxRect" in QD GX.
  45.  */
  46. #if powerc
  47. #  pragma options align=reset
  48. #endif
  49.  
  50. /*
  51.  * -- Share exact same alignment between 68k & PowerPC.
  52.  * -- User to add padding to idl as desired for better alignment.
  53.  */
  54. #if powerc
  55. #  pragma options align=mac68k
  56. #endif
  57. typedef
  58. struct ODRect {
  59. ODCoordinate left;
  60. ODCoordinate top;
  61. ODCoordinate right;
  62. ODCoordinate bottom;
  63. } ODRect;
  64. #if powerc
  65. #  pragma options align=reset
  66. #endif
  67. #define OpenDoc_GeoTypes_OpenDoc_GeoTypes_Version "1.0."
  68.  
  69. #ifndef SOM_DONT_USE_SHORT_NAMES
  70. #ifndef SOMTGD_OpenDoc_GeoTypes_Version
  71.     #ifdef OpenDoc_GeoTypes_Version
  72.         #undef OpenDoc_GeoTypes_Version
  73.         #define SOMTGD_OpenDoc_GeoTypes_Version 1
  74.     #else
  75.         #define OpenDoc_GeoTypes_Version OpenDoc_GeoTypes_OpenDoc_GeoTypes_Version
  76.     #endif /* OpenDoc_GeoTypes_Version */
  77. #endif /* SOMTGD_OpenDoc_GeoTypes_Version */
  78. #endif /* SOM_DONT_USE_SHORT_NAMES */
  79.  
  80. /*
  81.  * End of user-defined types.
  82.  */
  83. #endif /* SOM_Module_OpenDoc_GeoTypes_defined */
  84.